\hypertarget{class_network_1_1_grid_packed_message}{\section{Network\-:\-:Grid\-Packed\-Message$<$ Message\-Type $>$ Class Template Reference}
\label{class_network_1_1_grid_packed_message}\index{Network\-::\-Grid\-Packed\-Message$<$ Message\-Type $>$@{Network\-::\-Grid\-Packed\-Message$<$ Message\-Type $>$}}
}


Wrapper aroung a specified message type. Basic message infos (size, type). Message model must be specified.  




{\ttfamily \#include $<$Grid\-Packed\-Message.\-h$>$}

\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_network_1_1_grid_packed_message_aa0667e30cd41e0e7cc1d2eed191ceca0}{typedef boost\-::shared\-\_\-ptr\\*
$<$ Message\-Type $>$ {\bfseries Message\-Pointer}}\label{class_network_1_1_grid_packed_message_aa0667e30cd41e0e7cc1d2eed191ceca0}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_network_1_1_grid_packed_message_a39b2187e793cac564538764f57db60e8}{{\bfseries Grid\-Packed\-Message} (Message\-Pointer msg=Message\-Pointer())}\label{class_network_1_1_grid_packed_message_a39b2187e793cac564538764f57db60e8}

\item 
\hypertarget{class_network_1_1_grid_packed_message_af7ef862b08b983b25461b629b7aa2bda}{void \hyperlink{class_network_1_1_grid_packed_message_af7ef862b08b983b25461b629b7aa2bda}{set\-\_\-type} (int type)}\label{class_network_1_1_grid_packed_message_af7ef862b08b983b25461b629b7aa2bda}

\begin{DoxyCompactList}\small\item\em Set the message type (request 0, response 1) \end{DoxyCompactList}\item 
\hypertarget{class_network_1_1_grid_packed_message_aca8a411ca78a280db3009140cfa57cf4}{void \hyperlink{class_network_1_1_grid_packed_message_aca8a411ca78a280db3009140cfa57cf4}{set\-\_\-msg} (Message\-Pointer msg)}\label{class_network_1_1_grid_packed_message_aca8a411ca78a280db3009140cfa57cf4}

\begin{DoxyCompactList}\small\item\em Reference a message. \end{DoxyCompactList}\item 
\hypertarget{class_network_1_1_grid_packed_message_ab5fa6d56662106a115ca9e5d89d80c5f}{Message\-Pointer \hyperlink{class_network_1_1_grid_packed_message_ab5fa6d56662106a115ca9e5d89d80c5f}{get\-\_\-msg} ()}\label{class_network_1_1_grid_packed_message_ab5fa6d56662106a115ca9e5d89d80c5f}

\begin{DoxyCompactList}\small\item\em Get a shared ptr on the message. \end{DoxyCompactList}\item 
\hypertarget{class_network_1_1_grid_packed_message_a4d9386923be3ee589ddd87964327f8f2}{bool \hyperlink{class_network_1_1_grid_packed_message_a4d9386923be3ee589ddd87964327f8f2}{pack} (data\-\_\-buffer \&buf) const }\label{class_network_1_1_grid_packed_message_a4d9386923be3ee589ddd87964327f8f2}

\begin{DoxyCompactList}\small\item\em Wrap the message. \end{DoxyCompactList}\item 
\hypertarget{class_network_1_1_grid_packed_message_a29e131e224496efe692626f5c1b638eb}{bool \hyperlink{class_network_1_1_grid_packed_message_a29e131e224496efe692626f5c1b638eb}{unpack} (const data\-\_\-buffer \&buf)}\label{class_network_1_1_grid_packed_message_a29e131e224496efe692626f5c1b638eb}

\begin{DoxyCompactList}\small\item\em Unwrap the message. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_network_1_1_grid_packed_message_a406d9ddb6aebbd50fdd831c57b632c13}{static unsigned \hyperlink{class_network_1_1_grid_packed_message_a406d9ddb6aebbd50fdd831c57b632c13}{decode\-\_\-header} (const data\-\_\-buffer \&buf)}\label{class_network_1_1_grid_packed_message_a406d9ddb6aebbd50fdd831c57b632c13}

\begin{DoxyCompactList}\small\item\em Retrieve the size of the message. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_network_1_1_grid_packed_message_a48e2573073bf12e8a5ef62671b233d43}{int {\bfseries message\-Type\-\_\-}}\label{class_network_1_1_grid_packed_message_a48e2573073bf12e8a5ef62671b233d43}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class Message\-Type$>$class Network\-::\-Grid\-Packed\-Message$<$ Message\-Type $>$}

Wrapper aroung a specified message type. Basic message infos (size, type). Message model must be specified. 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
gremlins\-\_\-static/\hyperlink{_grid_packed_message_8h}{Grid\-Packed\-Message.\-h}\end{DoxyCompactItemize}
